<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    @keyframes run {
        0% {
            background-position-x: 0px;
        }
        100% {
            background-position-x: -1600px;
        }
    }
    
    @keyframes move {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(1600px);
        }
    }
    
    body {
        background-color: #ccc;
    }
    
    .box {
        width: 200px;
        height: 100px;
        background: url(bear.png) no-repeat;
        animation: run .5s steps(8) infinite, move 10s linear forwards;
    }
</style>

<body>
    <div class="box"></div>
</body>

</html>